import request from '@/utils/request'

const api = {
  upload: '/v1/common/uploadFile',
  dictValue: '/v1/auth/dict',
}

export const upload = e => {
  return request({
    url: api.upload,
    method: 'post',
    data: e,
    headers: {
      'Content-Type':'multipart/form-data'
    }
  })
}

export const dictValue = e => {
  return request({
    url: api.dictValue + '/' + e,
    method: 'get',
  })
}